package com.choupin.choupin.admin.entity;

import java.time.LocalDateTime;
import java.util.Objects;

public class UpdateResult {
    private Integer id;//序号
    private String phone;//手机号
    private String nickname; //昵称
    private   Integer  isDelete; // 是否删除，0代表未删除，1代表已删除
    private LocalDateTime endTime;//封号时间
    private  Integer  weight; //中奖概率
    private  Integer  memberStatus;//

    public UpdateResult() {
    }

    public UpdateResult(Integer id, String phone, String nickname, Integer isDelete, LocalDateTime endTime, Integer weight, Integer memberStatus) {
        this.id = id;
        this.phone = phone;
        this.nickname = nickname;
        this.isDelete = isDelete;
        this.endTime = endTime;
        this.weight = weight;
        this.memberStatus = memberStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getMemberStatus() {
        return memberStatus;
    }

    public void setMemberStatus(Integer memberStatus) {
        this.memberStatus = memberStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UpdateResult that = (UpdateResult) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(phone, that.phone) &&
                Objects.equals(nickname, that.nickname) &&
                Objects.equals(isDelete, that.isDelete) &&
                Objects.equals(endTime, that.endTime) &&
                Objects.equals(weight, that.weight) &&
                Objects.equals(memberStatus, that.memberStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, phone, nickname, isDelete, endTime, weight, memberStatus);
    }

    @Override
    public String toString() {
        return "UpdateResult{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", isDelete=" + isDelete +
                ", endTime=" + endTime +
                ", weight=" + weight +
                ", memberStatus=" + memberStatus +
                '}';
    }
}
